<script language="javascript" type="text/javascript">
    $(document).ready(function() {
        // date picker
        $("#tanggal").datepicker({
            changeMonth: true,
            changeYear: true,
            dateFormat: 'yy-mm-dd'
        });
    });
</script>
<div class="breadcrumbs">
    <div class="container-fluid">
        <ul class="bread pull-left">
            <li><a href="{$config->site_url('kuliah/kelas')}">Perkuliahan</a></li>
            <li><a href="{$config->site_url('kuliah/kelas')}">Kelas</a></li>
            <li><a href="{$config->site_url('kuliah/kelas/manage')}/{$rs_info.tahun}/{$rs_info.semester}/{$rs_info.dosen_kd}/{$rs_info.makul_kd}">{$rs_info.makul_nm}</a></li>
            <li><a href="{$config->site_url('kuliah/kelas/detail')}/{$rs_info.kelas_kd}">{$rs_info.kelas_nm}</a></li>
            <li class="active"><a href="#">PERTEMUAN {$result.kelas_minggu}</a></li>
        </ul>
    </div>
</div>
<div class="row-fluid">
    <div class="span12">
        <div class="box">
            <div class="box-head">
                <h3>{$result.kelas_nm} | PERTEMUAN {$result.kelas_minggu}</h3>
            </div>
            <div class="box-content">
                <!-- notification template -->
                {include file="base/templates/notification.html"}
                <!-- end of notification template-->
                <form action="{$config->site_url('kuliah/kelas/detail_view_process')}" class="form-horizontal" method="post">
                    <input type="hidden" name="kelas_detail_kd" value="{$result.kelas_detail_kd|default:''}" />
                    <input type="hidden" name="kelas_kd" value="{$rs_info.kelas_kd|default:''}" />
                    <table class='table table-bordered'>
                        <tbody>
                            <tr>
                                <td width="25%">Pertemuan</td>
                                <td width="75%">{$result.kelas_minggu|default:''}</td>
                            </tr>
                            <tr>
                                <td>Tanggal</td>
                                <td>{$dtm->get_full_date($result.kelas_tgl|default:'')|upper}</td>
                            </tr>
                            <tr>
                                <td>Mata Kuliah</td>
                                <td>{$result.makul_nm|default:''}</td>
                            </tr>
                            <tr>
                                <td>Jurusan</td>
                                <td>{$result.jurusan_nm|default:''}</td>
                            </tr>
                            <tr>
                                <td>Dosen</td>
                                <td>{$result.nama_lengkap|default:''}, {$result.dosen_gelar|default:''}</td>
                            </tr>
                            <tr>
                                <td>Kelas</td>
                                <td>{$result.kelas_nm|default:''}</td>
                            </tr>
                            <tr>
                                <td>Pokok Bahasan</td>
                                <td>{$result.kompetensi_dasar|upper|default:''}</td>
                            </tr>
                            <tr>
                                <td>Sub-Bahasan</td>
                                <td>
                                    {$no=1}
                                    {foreach from=$rs_materi item=m}
                                    {$no++}. {$m.materi_content|upper}<br />
                                    {/foreach}
                                </td>
                            </tr>
                            <tr>
                                <td>Status Kelas</td>
                                <td>{$result.kelas_st|upper|default:''}</td>
                            </tr>
                            <tr>
                                <td>Catatan Perkuliahan</td>
                                <td>
                                    <textarea name="kelas_note" rows="4" class="span10">{$result.kelas_note|default:''}</textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <div class="form-actions">
                        <button class="btn btn-primary" type="submit" name="save" value="open">OPEN</button>
                        <button class="btn btn-danger" type="submit" name="save" value="close">CLOSE</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>